<div class="admin-sidebar am-offcanvas " id="admin-offcanvas">
    <div class="am-offcanvas-bar admin-offcanvas-bar" id="saaa_sliderbar">
        {% with request.user.u_ucenter.quanxian as quanxian %}
            <ul class="am-list admin-sidebar-list">
                <li {% if request.path == "/saas/" %}class="active"{% endif %}>
                    <a class="am-cf" href="/saas/">
                        <span class="am-warning am-icon-home color"></span> 数据总览
                        <span class="am-icon-angle-right am-fr"></span>
                    </a>
                </li>

                {% if "10" in quanxian %}
                    <li class="admin-parent">
                        <a class="am-cf {% if "/gis/" in request.path or "/company_list/" in request.path %}
                    am-collapsed{% endif %}" data-am-collapse="{target: '#collapse-nav1'}">
                            <span class="am-warning am-icon-database color"></span> 数据总库
                            <span class="{% if "/gis/" in request.path or "/company_list/" in request.path %}
                        am-icon-angle-down{% else %}am-icon-angle-right{% endif %} am-fr"></span>
                        </a>
                        <ul class="am-list admin-sidebar-sub am-collapse {% if "/gis/" in request.path or "/company_list/" in request.path %}
                    am-in{% endif %}" id="collapse-nav1">
                            <li {% if "/company_list/" in request.path %}class="active"{% endif %}>
                                <a href="/saas/company_list/"> 全维筛查</a>
                            </li>
                            <!-- {% if "50" in quanxian %} -->
                                <!-- <li {% if "/gis/" in request.path %}class="active"{% endif %}> -->
                                    <!-- <a href="/saas/gis/"> 地理信息</a> -->
                                <!-- </li> -->
                            <!-- {% endif %} -->
                        </ul>
                    </li>
                {% endif %}

                {% if "20" in quanxian %}
                    <li class="admin-parent">
                        <a class="am-cf {% if "/related" in request.path or "/report_search/" in request.path %}am-collapsed{% endif %}"
                           data-am-collapse="{target: '#collapse-nav2'}">
                            <span class="am-warning am-icon-connectdevelop color"></span> 数据查询
                            <span class="{% if "/related" in request.path or "/report_search/" in request.path %}am-icon-angle-down{% else %}am-icon-angle-right{% endif %}
                        am-fr"></span>
                        </a>
                        <ul class="am-list admin-sidebar-sub am-collapse {% if "/related" in request.path or "/report_search/" in request.path %}am-in{% endif %}"
                            id="collapse-nav2">
                            <li {% if "/report_search/" in request.path %}class="active"{% endif %}>
                                <a href="/saas/report_search/"> 征信报告</a>
                            </li>
                            <li {% if "/related_single/" in request.path %}class="active"{% endif %}>
                                <a href="/saas/related_single/"> 单点关联</a>
                            </li>
                            <li {% if "/related_multi/" in request.path %}class="active"{% endif %}>
                                <a href="/saas/related_multi/"> 多点关联</a>
                            </li>
                        </ul>
                    </li>
                {% endif %}

                {% if "30" in quanxian %}
                    <li class="admin-parent" style="display:none">
                        <a class="am-cf {% if "/guanzhu/" in request.path or "/lsxx/" in request.path %}
                    am-collapsed{% endif %}" data-am-collapse="{target: '#collapse-nav5'}">
                            <span class="am-warning am-icon-yelp color"></span> 风险提示
                            <span class="{% if "/guanzhu/" in request.path or "/lsxx/" in request.path %}
                        am-icon-angle-down{% else %}am-icon-angle-right{% endif %} am-fr"></span>
                        </a>
                        <ul class="am-list admin-sidebar-sub am-collapse {% if "/guanzhu/" in request.path or "/lsxx/" in request.path %}
                    am-in{% endif %}" id="collapse-nav5">
                            <li {% if "/guanzhu/" in request.path %}class="active"{% endif %}>
                                <a href="/saas/guanzhu/"> 我的监控</a>
                            </li>
                            <li {% if "/lsxx/" in request.path %}class="active"{% endif %}>
                                <a href="/saas/lsxx/"> 历史消息</a>
                            </li>
                        </ul>
                    </li>
                {% endif %}

                {% if "40" in quanxian %}
                    <li class="admin-parent">
                        <a class="am-cf {% if "/statistics" in request.path %}am-collapsed{% endif %}"
                           data-am-collapse="{target: '#collapse-nav3'}">
                            <span class="am-warning am-icon-line-chart color"></span> 宏观战略
                            <span class="{% if "/statistics" in request.path %}am-icon-angle-down
                        {% else %}am-icon-angle-right{% endif %} am-fr"></span>
                        </a>
                        <ul class="am-list admin-sidebar-sub am-collapse {% if "/statistics" in request.path %}am-in{% endif %}"
                            id="collapse-nav3">
                            <li {% if "/statistics_chain/" in request.path %}class="active"{% endif %}>
                                <a href="/saas/statistics_chain/"> 产业分布</a>
                            </li>
                            <li {% if "/statistics_entmonth/" in request.path %}class="active"{% endif %}>
                                <a href="/saas/statistics_entmonth/"> 月度晴雨表</a>
                            </li>
                            <li {% if "/statistics_tax/" in request.path %}class="active"{% endif %}>
                                <a href="/saas/statistics_tax/"> 税务分析</a>
                            </li>
                            <li {% if "/statistics_hg/" in request.path %}class="active"{% endif %}>
                                <a href="/saas/statistics_hg/"> 进出口分析</a>
                            </li>
                        </ul>
                    </li>
                {% endif %}

                <li class="admin-parent" style="display:none">
                    <a class="am-cf {% if "/account" in request.path %}am-collapsed{% endif %}"
                       data-am-collapse="{target: '#collapse-nav6'}">
                        <span class="am-warning am-icon-users color"></span> 账户管理
                        <span class="{% if "/account" in request.path %}am-icon-angle-down
                        {% else %}am-icon-angle-right{% endif %} am-fr"></span>
                    </a>
                    <ul class="am-list admin-sidebar-sub am-collapse {% if "/account" in request.path %}am-in{% endif %}"
                        id="collapse-nav6">
                        <li {% if "/account_main/" in request.path %}class="active"{% endif %}>
                            <a href="/saas/account_main/"> 我的账户</a>
                        </li>
                        <li {% if "/account_charge/" in request.path %}class="active"{% endif %}>
                            <a href="/saas/account_charge/"> 消费记录</a>
                        </li>
                        <li {% if "/account_org/" in request.path %}class="active"{% endif %}>
                            <a href="/saas/account_org/"> 我的机构</a>
                        </li>
                    </ul>
                </li>

                <li {% if request.path == "/saas/acc_sq/" %}class="active"{% endif %} style="display:none">
                    <a class="am-cf" href="/saas/acc_sq/">
                        <span class="am-warning am-icon-copyright color"></span> 征信授权
                        <span class="am-icon-angle-right am-fr"></span>
                    </a>
                </li>

                <li {% if request.path == "/saas/acc_yy/" %}class="active"{% endif %} style="display:none">
                    <a class="am-cf" href="/saas/acc_yy/">
                        <span class="am-warning am-icon-comments-o color"></span> 异议数据
                        <span class="am-icon-angle-right am-fr"></span>
                    </a>
                </li>
            </ul>
        {% endwith %}
    </div>
</div>
